
class App extends React.Component {
    constructor(props) {
        super(props);

    }


    setOption(){
        MIO.echatOption().then(option=>{
            this.chart.setOption(option);
        })
    }


    componentDidMount() {
        this.chart = echarts.init(document.getElementById('chart-ach'));
        M.chat=this.chart;
      
        setInterval(()=>{
            this.setOption()
        },100)

        


    }




    render() {

        return (
            <div>

                <div id='chart-ach' style={{ width: '100%', height: 500 }}></div>
            </div>
        )
    }


}

